package com.itheima.sh.d_HomeWork;

import java.util.Scanner;

public class homework05 {
    public static void main(String[] args) {
        //创建键盘录入的对象
        Scanner sc=new Scanner(System.in);
        //提示信息
        System.out.println("请输入一个五位数：");
        //获取录入的数据
        int number = sc.nextInt();
        //拆分数据
        int ge=number%10;
        int shi=number/10%10;
        int qian=number/1000%10;
        int wan=number/10000%10;
        if (wan==ge&&shi==qian){
            System.out.println(number+"是回文数");
        }else{
            System.out.println(number+"不是回文数");
        }

    }
}
